package com.cqs.learning.spring.cloud.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * @author lixw
 * @date created in 9:57 2020/4/10
 */
@SpringBootApplication
@EnableConfigServer
public class ConfigApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        try {
            SpringApplication application = new SpringApplication(ConfigApplication.class);
            application.run(args);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }
}